/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Embeddable;

/**
 *
 * @author Chenhui
 */
@Embeddable
public class OccupationEntity implements Serializable {
  
    private String title;
    private String companyName;
    private String companyAddress;
    private String email;
    private String contact;
    private String website;
    private Date startDate;
    private Date endDate;
    private String notes;

    public OccupationEntity() {
    }
    
    public void create(String title, String name, String add, String email, String contact,
            String website, Date start, Date end){
            
        this.setTitle(title);
        this.setCompanyName(name);
        this.setCompanyAddress(add);
        this.setEmail(email);
        this.setContact(contact);
        this.setWebsite(website);
        this.setStartDate(start);
        this.setEndDate(end);
        
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }
}